<%@page import="com.wanmait.travel.vo.Comment"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%
    String path=request.getServletContext().getContextPath();
    List<Comment> comments=(List<Comment>)request.getAttribute("comments");
    %>
<meta charset="UTF-8">
<jsp:include page="/managerinc/header.jsp"></jsp:include>
<title>用户评论</title>
<section>
<h2>用户评论</h2>
<form action="<%=path%>/ManagerController?action=searchComment" method="post">
<input type="text" value="" name="searchComment">
<input type="submit" value="搜索" >
</form>
<table width="100%" height="80px" border="1">
<tr>
<th>用户名</th>
<th>景点</th>
<th>评论时间</th>
<th>评论内容</th>
</tr>
<%
for(int i =0;comments!=null&&i<comments.size();i++){
	Comment comment=comments.get(i);
%>
<tr>
<th><a href="<%=path %>/ManagerController?action=userCommentSearch&userId=<%=comment.getUserId() %>"><%=comment.getUserinfo().getUsername() %></a></th>
<th><%=comment.getScenic().getName() %></th>
<th><%=comment.getCommmentDate() %></th>
<th><%=comment.getComment() %></th>
</tr>
<%} %>	
</table>
</section>
<jsp:include page="/managerinc/footer.jsp"></jsp:include>